package com.example.qihuibao.bean

import androidx.room.Entity
import androidx.room.PrimaryKey
import androidx.room.TypeConverters
import com.example.qihuibao.dao.Converters

@TypeConverters(Converters::class)
@Entity(tableName = "MealInfo", primaryKeys = ["CantID", "MealID"])
data class RspQueryMealInfoBean(
    var CantID	:String = "",	//	餐厅ID  //本地添加字段
    var MealID	:String = "",	//	餐别ID 01-05
    var MealName	:String? = null,	//	餐别名称
    var Status	:String? = null,	//	状态： :0 不开餐,1 开餐
    var OrderFlag	:String? = null,	//	订餐开关:0 关,1 开
    var SpotFlag	:String? = null,	//	现场用餐开关:0 关,1 开
    var CancelFlag	:String? = null,	//	退餐开关:0 关,1 开
    var WeekCalendar	:String? = null,	//	订餐周历:0 关 1开,第一位 周日,...,第七位 周六
    var UseBeginTime	:String? = null,	//	用餐开始时间,hh24mi
    var UseEndTime	:String? = null,	//	用餐结束时间,hh24mi
    var SpotUseBeginTime	:String? = null,	//	现场用餐开始时间,hh24mi
    var SpotUseEndTime	:String? = null,	//	现场用餐结束时间,hh24mi
    var OrderDeadlineDate	:String? = null,	//	订餐截止时间,提前x天
    var OrderDeadlineTime	:String? = null,	//	订餐截止时间,时间 hh24mi
    var CancelDeadlineDate	:String? = null,	//	退餐截止时间,提前x天
    var CancelDeadlineTime	:String? = null,	//	退餐截止时间,时间 hh24mi
    var PerOrderLimit	:Int = 0,		//	个人订餐限额
    var PerSpotLimit	:Int = 0,		//	个人现场限额
    var PerTotalLimit	:Int = 0,		//	个人总量限额
    var AllOrderLimit	:Int = 0,		//	总订餐限额
    var AllSpotLimit	:Int = 0,		//	总现场限额
    var AllTotalLimit	:Int = 0,		//	总的总量限额
    var OrderMode	:String? = null,		//	订餐模式：1套餐，2点餐，3简约
    var DeliverFlag	:String? = null,		//	支持配送：0否，1是
    //套餐列表MealSetlList
    @TypeConverters(MealSet::class) val MealSetlList:List<MealSet>? = null,
    //收费标准列表FeeList
    @TypeConverters(Fee::class) val FeeList:List<Fee>? = null,
) : BaseRspBean() /*{
    data class MealSet (
        val MealSetID	:String? = null,	//	套餐ID 01-99
        val MealSetName	:String? = null,	//	套餐名称
        val Status	:String? = null,	//	状态：0 不开通，1开通
        val PerOrderLimit	:Int = 0,		//	个人订餐限额
        val PerSpotLimit	:Int = 0,		//	个人现场限额
        val PerTotalLimit	:Int = 0,		//	个人总量限额
        val AllOrderLimit	:Int = 0,		//	总订餐限额
        val AllSpotLimit	:Int = 0,		//	总现场限额
        val AllTotalLimit	:Int = 0,		//	总的总量限额
    )
    data class Fee (
        val FeeID	:String? = null,	//	收费标准ID
        val FeeName	:String? = null,	//	收费标准名称
    )
}*/